MRadioGroup – A radio button list that attaches new buttons aligned vertically.


Creation: MRadioGroup_New(text$, multiselect, x, y, pixelwidth)


text$ - The text that is displayed on the initial button.

multiselect – Allow multiple buttons enabled at a time. 0=radio button behavior; 1=checkbox behavior

x – Pixel X coordinate for the top left corner of the radio button group.

y – Pixel Y coordinate for the top left corner of the radio button group.

pixelwidth – The width of the radio button group in pixels.


Functions:

MRadioGroup_Add(index, text$)

Adds a new button to the bottom of the radio button group. Returns buttonIndex for the button.


MRadioGroup_ClearButtons(index)

Clears the pressed state of each radio button.


MRadioGroup_ClearSelected(index)

Clears the pressed status of the radio button group as a whole.


MRadioGroup_Delete(index)

Deletes the radio button group.


MRadioGroup_Disable(index, buttonIndex)

Disables a button in the radio button group.


MRadioGroup_Draw(index)

Draws the radio button group to screen.


MRadioGroup_Enable(index, buttonIndex)

Enables a button in the radio button group.


MRadioGroup_GetButtonState(index, buttonIndex)

Returns the pressed state of a button in the radio button group. 0=no; 1=yes


MRadioGroup_GetCount(index)

Returns the number of buttons in the radio button group. 0=none


MRadioGroup_GetSelected(index)

Returns whether radio button group as a whole is pressed status. 0=none ; buttonIndex of button.


MRadioGroup_SelectButton(index, buttonIndex)

Selects a given button in the radio button group.


MRadioGroup_SetText(index, buttonIndex, text$)

Sets the text on a button in radio button group.